package com.denlaku.longan.event;

import com.lmax.disruptor.EventTranslatorOneArg;

/**
 * 消息转换类，负责将消息转换为事件
 *
 * @author tianx
 */
class MessageEventTranslator<T> implements EventTranslatorOneArg<MessageEvent, T> {
    @Override
    public void translateTo(MessageEvent messageEvent, long sequence, T content) {
        messageEvent.setContent(content);
    }
}